﻿using Sinacor.OMM.Util;

namespace Sinacor.OMM.Deployment.Setup.Steps
{
    public class InstallComPlus
    {
        #region [ Constants ]

        const string applicationName = "OMM Utilities";
        const string applicationDescription = "Application OMM - Order Message Manager";

        #endregion

        #region [ Public Methods ]

        public void InstallComOMMComponent(string componentPath)
        {
            string errorMessage;
            ComPlus.InstallCOMComponent(applicationName, applicationDescription, componentPath, out errorMessage);
        }

        public void DeleteComOMMApplication()
        {
            ComPlus.DeleteCOMApplication(applicationName);
        }

        #endregion
    }
}